import javax.lang.model.element.UnknownAnnotationValueException;

class Employee{   //定义员工类
    public String name;
    public int age;
    public String nannv;
    public Employee(){}
    public Employee(String name,int age,String nannv){
        this.name=name;
        this.age=age;
        this.nannv=nannv;
    }
    public String getInfo(){
        return this.name+this.age+this.nannv;
    }
}
class Leader extends Employee{    //定义管理层继承员工
    private String job; //独有属性
    private double yearsal;
    public Leader(){}
    public Leader(String name,int age,String nannv,String job,double yearsal){
        super(name,age,nannv);
        this.job=job;
        this.yearsal=yearsal;
    }
    public String getInfo(){
        return super.getInfo()+this.job+this.yearsal;
    }
}
class Worker extends Employee{  //定义职工继承员工
    private String deptno;
    private double mouthsal;
    public Worker(){}
    public Worker(String name,int age,String nannv,String deptno,double mouthsal){
        super(name,age,nannv);
        this.deptno=deptno;
        this.mouthsal=mouthsal;
    }
    public String getInfo(){
        return super.getInfo()+this.deptno+this.mouthsal;
    }
}
public class  EmployeeTest{   //主类
    public static void main(String[] args)
    {

        Leader a=new Leader("李向阳", 20, "男", "boss", 300000);
        Worker b=new Worker("白鹤",16,"女","famer",3000);
        System.out.println(a.getInfo());
        System.out.println(b.getInfo());

    }
}